rm gateway 
echo "删除gateway二进制文件"
cat /dev/null > .out 
echo "删除nohup日志文件"
go build -o gateway main.go
echo "构建gateway二进制文件"
nohup ./gateway -pidx 1 > gateway1.out  2>&1 &
echo "启动gateway1服"
sleep 1
tail gateway1.out
nohup ./gateway -pidx 2 >gateway2.out 2>&1 &
echo "启动gateway2服"
sleep 1
tail gateway2.out
